<style>
    body,html{
        background-color: #F9F9F9;
    }
</style>
<script>
    window.onload = function(){
        $('[name=schoolId]').select2();
        var form = new xhForm($('#xh_form'));
        form.parse();
        $('.form-date').datetimepicker({format: 'yyyy-mm-dd',language: 'zh-CN',minView: "month", autoclose:true});
        //提交按钮处理事件
        $('#bt_modal_confirm',window.top.document).click(function () {
            form.submit('school_book/createInfo',{},function (res) {
                window.top.xhTop.showSuccess(res.msg);
                window.top.xhTop.getActiveFrame().obj.dataGrid.reload();
                window.top.xhTop.closeModal();
            });
        });
    }
</script>

<form id="xh_form" class="xh-form"  method="post"    style="margin-left: 20px;">
    <div class="xh-area-form">
        <table >
            <tr>
                <td style="width: 75px;"><label>学校</label></td>
                <td>
                    <select name="schoolId" style="width:200px;height: 100px;">
                        <option value="">请选择学校</option>
                        {% for id,text in schools %}
                            <option value="{{ id }}">{{ text }}</option>
                        {% endfor %}
                    </select>
                </td>
            </tr>
            <tr>
                <td style="width: 75px;"><label>沟通结果</label></td>
                <td >
                    <select name="bResult"  style="display: inline;width: 200px;">
                        <option value="0">否</option>
                        <option value="1">是</option>
                    </select>
                </td>
                <td style="width: 75px;"><label>沟通时间</label></td>
                <td >
                    <input name="tTime" class="form-date">
                </td>
            </tr>
            <tr>
                <td valign="middle"><label>沟通内容</label></td>
                <td colspan="3">
                    <textarea name="mContent" rows="3" border="0"></textarea>
                </td>
            </tr>

        </table>
    </div>
</form>